package ru.mipt.testload.util;

import com.sun.xml.xsom.XSSimpleType;

/**
 * @author Pavel G. Belevich
 *         Date: 18.06.2010
 *         Time: 2:56:38
 */
public final class Utils {

    private Utils() {
    }

    public static XSSimpleType getStandardSimpleBaseType(XSSimpleType xsSimpleType) {
        if ("http://www.w3.org/2001/XMLSchema".equals(xsSimpleType.getTargetNamespace())) {
            return xsSimpleType;
        } else {
            return getStandardSimpleBaseType(xsSimpleType.getSimpleBaseType());
        }
    }

}
